package puziran.sofa.util;

import java.io.IOException;
import java.util.Map;

import puziran.sofa.http.client.HttpLoadBalanceNew;
import net.sf.serfj.client.Client;
import net.sf.serfj.client.WebServiceException;

public class ClientUtil extends Client {
	public ClientUtil(String url) {
		super(HttpLoadBalanceNew.getInstance().route(url));
	}

	public Object post(String url, Map map) throws IOException,
			WebServiceException {
		Object obj = postRequest(url, map);
		return obj;
	}

	public Object get(String url, Map map) throws IOException,
			WebServiceException {
		Object obj = postRequest(url, map);
		return obj;
	}

	public static void main(String[] args) {
		String url = null;
		Map map = null;
	}
}